# -*- coding: utf-8 -*-
# @version : 1.0
# @File    : crud.py.py
# @Date    : 2024/12/26 11:41
# @Author  : GlenZhao
# @Desc    :
from sqlalchemy.ext.asyncio import AsyncSession

from apps.auth.menu.models import AuthMenu
from core.crud import DalBase
from .schemas import Menu


class MenuDal(DalBase):

    def __init__(self, db: AsyncSession):
        super(MenuDal, self).__init__()
        self.db = db
        self.model = AuthMenu
        self.schema = Menu